package edu.ucsur.tp.veterinaria.forms;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JButton;
import javax.swing.BoxLayout;
import java.awt.FlowLayout;
import java.awt.GridLayout;
import javax.swing.JLabel;
import java.awt.GridBagLayout;
import java.awt.GridBagConstraints;
import java.awt.Insets;
import java.awt.Color;
import javax.swing.JTextPane;
import javax.swing.JTextField;
import javax.swing.JPasswordField;
import java.awt.Font;
import java.awt.Dimension;
import javax.swing.ImageIcon;
import java.awt.Frame;

public class FormAutenticacion extends JFrame {

  private JPanel contentPane;
  private JTextField txtUsuario;
  private JPasswordField txtClave;

  /**
   * Launch the application.
   */
  public static void main(String[] args) {
    EventQueue.invokeLater(new Runnable() {
      public void run() {
        try {
          FormAutenticacion frame = new FormAutenticacion();
          frame.setVisible(true);
        } catch (Exception e) {
          e.printStackTrace();
        }
      }
    });
  }

  /**
   * Create the frame.
   */
  public FormAutenticacion() {
    setResizable(false);
    setTitle("Sistema de Administraci\u00F3n de Veterinaria");
    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    setBounds(100, 100, 534, 360);
    contentPane = new JPanel();
    contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
    setContentPane(contentPane);
    contentPane.setLayout(null);
    
    JLabel lblTitulo = new JLabel("Sistema de Administraci\u00F3n de Veterinaria");
    lblTitulo.setFont(new Font("Tahoma", Font.BOLD, 18));
    lblTitulo.setBounds(10, 11, 411, 32);
    contentPane.add(lblTitulo);
    
    JLabel lblLogo = new JLabel("Logo");
    lblLogo.setIcon(new ImageIcon(FormAutenticacion.class.getResource("/edu/ucsur/tp/veterinaria/images/logo_desktop_1.jpg")));
    lblLogo.setMinimumSize(new Dimension(256, 201));
    lblLogo.setPreferredSize(new Dimension(256, 201));
    lblLogo.setForeground(Color.RED);
    lblLogo.setBackground(Color.DARK_GRAY);
    lblLogo.setBounds(10, 121, 256, 201);
    contentPane.add(lblLogo);
    
    txtUsuario = new JTextField();
    txtUsuario.setBounds(358, 139, 158, 20);
    contentPane.add(txtUsuario);
    txtUsuario.setColumns(10);
    
    txtClave = new JPasswordField();
    txtClave.setBounds(358, 170, 158, 20);
    contentPane.add(txtClave);
    
    JLabel lblUsuario = new JLabel("Usuario:");
    lblUsuario.setBounds(280, 142, 46, 14);
    contentPane.add(lblUsuario);
    
    JLabel lblClave = new JLabel("Clave:");
    lblClave.setBounds(280, 173, 46, 14);
    contentPane.add(lblClave);
    
    JButton btnIngresar = new JButton("Ingresar");
    btnIngresar.setBounds(328, 216, 91, 23);
    contentPane.add(btnIngresar);
    
    JButton btnSalir = new JButton("Cerrar");
    btnSalir.setBounds(425, 216, 91, 23);
    contentPane.add(btnSalir);
    
    JLabel lblSubTitulo = new JLabel("Autenticaci\u00F3n del Sistema");
    lblSubTitulo.setForeground(new Color(70, 130, 180));
    lblSubTitulo.setFont(new Font("Tahoma", Font.BOLD, 13));
    lblSubTitulo.setBounds(10, 68, 216, 20);
    contentPane.add(lblSubTitulo);
  }
}
